/*
 Copyright 2008 Jason E. Smith Licensed under the Apache License, Version 2.0 (the "License");
 You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 */

new Class("controls::ScrollBar", {
	inherits : "controls::View",
	traits 	 : "com::samples::Runner",
	ensure	 : $w("com::samples::UriHandler \
				com::controls::json::Parser \
				controls::Accordion"),
	
	click : function(e){
		console.log(this.description)	
	},
	
	html : 
	'<div>\
    	<img class="left_cap" src="/images/horizontal_arrowLeft.gif"/>\
		<span class="knob" href="#"></span>\
    	<img class="right_cap" src="/images/horizontal_arrowRight.gif"/>\
	</div>',
	
	initialize : function(){
//		this.parent();
//		this.addEvent("onMoveLeft", function(){
//			console.log("left")
//        	//this.knob.tween("left", 0)
//    	});
//		this.addEvent("onMoveLeft", function(){
//        	//this.knob.tween("left", parseInt(this.getStyle("width")) - 15)
//    	});
	}                          
//    onmoveright: function(){
//        this.knob.tween("left", parseInt(this.getStyle("width")) - 15)
//    },
//    onmoveleft: function(){
//        this.knob.tween("left", 0)
//    }
});
